<div class="here-you-are">
	<ul>
		<li><a href="<?php echo GetController('url'); ?>provinces?sb_proId=<?php echo $province -> id; ?>"><?php echo $province -> province_name; ?></a></li>
		<li><?php echo $district -> district_name; ?></li>
	</ul>
</div>
<div class="span6">	
	<!-- <img src="<?php echo IMG; ?>Serey-Sorphorn.jpg" alt="Serey Sorphorn Map" title="Serey Sorphorn map" class="cambodia-map"> -->
	<?php 
		$img = "";
		$title = "";
		if($province -> alias == "bonteaymeanchey"){
			$img = "provinces/Banteay-Meanchey.jpg";
			$title = "Banteay Meanchey Map";
		}elseif($province -> alias == "battambang"){
			$img = "provinces/Battambang.jpg";
			$title = "Battambang Map";
		}elseif($province -> alias == "siemreap"){
			$img = "provinces/Siem-Reap.jpg";
			$title = "Siemreap Map";
		}elseif($province -> alias == "odormeanchey"){
			$img = "provinces/odor-meanchey.jpg";
			$title = "Odor Meanchey Map";
		}elseif($province -> alias == "pursat"){
			$img = "provinces/Pursat.jpg";
			$title = "Pursat Map";
		}elseif($province -> alias == "pailin"){
			$img = "provinces/Pailin.jpg";
			$title = "Pailin Map";
		}
	?>
	<img src="<?php echo IMG . $img; ?>" alt="<?php echo $title; ?>" title="<?php echo $title;?>" border="0" usemap="#Map" class="cambodia-map" id="mapImage">
	<map name="Map" id="Map">
    	<?php 
			foreach($recordsDes as $record){				
				echo '<area title = "' . $title . '" shape="' . $record -> shape . '" coords="' . $record -> lat_lon . '" href="' . GetController('url') . 'provinces?sb_proId=' . $record -> province_id . '&sb_disId=' . $record -> id . '" id="area_' . $record -> id . '" class="jTip area_' . $record -> id . '" data-maphilight=\'{"strokeColor":"0000ff","strokeWidth":1,"fillColor":"' . $record -> color . '","fillOpacity":0.6}\' alt="' . $record -> district_name . '">';
			}
		?>      
    </map>
</div>
<div class="span6">
	<div class="map-info">
		<table class="table table-striped table-bordered table-hover">
			<colgroup><col widht=""><col width=""><col width=""><col width=""><col width=""><col></colgroup>
			<thead>
				<tr>
					<th>ដេប៉ូ</th>
					<th>ឡាន</th>
					<th>ធុង</th>
					<th>ចំនួនលក់</th>
					<th>ភាករយ</th>
					<th>កំណត់ចំណាំ</th>
				</tr>
			</thead>
			<tbody>				
					<?php 
						if(count($records)){
							foreach($records as $record){
								echo '<tr class="depot-info" data-placement="left" data-toggle="tooltip" title="Last Modified: ' . ($record -> modified . ' Modified By: ' . $record -> modified_by) . '">';
								echo '<td>' . $record -> depot_name . '</td>';
								echo '<td>' . $record -> truck_number . '</td>';
								echo '<td>' . $record -> tank_number . '</td>';
								echo '<td>' . $record -> amount_of_sell .'</td>';
								echo '<td>' . $record -> percentage . '</td>';
								echo '<td>' . $record -> note . '</td>';
								echo '</tr>';
							}
						}else{
							echo '<tr><td colspan="6" class="text-center">មិនមានដេប៉ូទេ</td></tr>';
						}
					?>
				</tr>
			</tbody>
		</table>		
	</div>
</div>